package com.wskj.library.listener;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;

/**
 * @author 胡洋
 * @describe 
 * @Date 2018年3月22日下午6:23:42
 * @version 1.0
 */
@WebListener
public class ApplicationListener implements ServletContextListener {

	
	@Override
	public void contextDestroyed(ServletContextEvent arg0) {
		
	}

	
	@Override
	public void contextInitialized(ServletContextEvent event) {
	
		event.getServletContext().setAttribute("basePath", event.getServletContext().getContextPath());
	}

}
